/* 朋友圈样式 */
.social-feed-container {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.social-feed-sidebar {
    width: 280px;
    background-color: #fff;
    border-right: 1px solid #e6e6e6;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.user-profile {
    position: relative;
    margin-bottom: 20px;
}

.cover-photo {
    height: 120px;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 0 15px 15px;
    text-align: center;
    position: relative;
    margin-top: -40px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.profile-name {
    margin: 10px 0 5px;
    font-size: 18px;
}

.sidebar-actions {
    padding: 15px;
    flex: 1;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.sidebar-action-btn:hover {
    background-color: #f5f5f5;
}

.sidebar-action-btn i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #4a7aff;
}

.social-feed-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
    position: relative;
}

/* 发布朋友圈弹窗 */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.post-modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.post-modal-header h4 {
    margin: 0;
    font-size: 18px;
}

.post-modal-body {
    padding: 20px;
}

.post-modal-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 15px;
    font-size: 16px;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.media-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.media-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.media-action-btn:hover {
    background-color: #f5f5f5;
}

.media-action-btn i {
    font-size: 18px;
    color: #4a7aff;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    margin-right: 8px;
}

/* 朋友圈内容 */
.social-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    color: #888;
}

.loading-indicator i {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.post-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-top {
    border: 2px solid #4a7aff;
}

.top-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4a7aff;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user-info {
    padding-right: 0;
    display: flex;
    flex-direction: column;
}

.post-username {
    margin: 0 0 5px;
    font-size: 16px;
}

.post-time {
    color: #888;
    font-size: 13px;
}

.post-actions {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    display: none;
    z-index: 10;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.post-content {
    padding: 0 20px 15px;
}

.post-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.post-images {
    padding: 0 20px 15px;
    display: grid;
    gap: 5px;
}

.image-grid-1 {
    grid-template-columns: 1fr;
}

.image-grid-2, .image-grid-4 {
    grid-template-columns: 1fr 1fr;
}

.image-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.image-grid-many {
    grid-template-columns: 1fr 1fr 1fr;
}

.image-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-image:hover {
    transform: scale(1.05);
}

.post-videos {
    padding: 0 20px 15px;
}

.post-video {
    width: 100%;
    border-radius: 5px;
    max-height: 400px;
}

.post-location {
    padding: 0 20px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.post-location i {
    color: #4a7aff;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    color: #888;
    font-size: 14px;
}

.post-comments {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

.comment-item {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.comment-author {
    font-weight: 500;
    color: #4a7aff;
}

.delete-comment-btn {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.comment-item:hover .delete-comment-btn {
    opacity: 1;
}

.post-footer {
    display: flex;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    border-radius: 5px;
    transition: background-color 0.2s;
    flex: 1;
    justify-content: center;
}

.post-action-btn:hover {
    background-color: #f5f5f5;
}

.post-action-btn.liked {
    color: #ff5252;
}

.post-action-btn.liked i {
    color: #ff5252;
}

/* 评论模态框 */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.comment-modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.comment-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.comment-modal-header h4 {
    margin: 0;
    font-size: 18px;
}

.comment-modal-body {
    padding: 20px;
}

.comment-modal-body textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    resize: none;
    font-size: 16px;
}

.comment-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1001;
    transition: bottom 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.notification.show {
    bottom: 30px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .social-feed-container {
        flex-direction: column;
        height: auto;
    }
    
    .social-feed-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
        height: auto;
        max-height: 180px;
    }
    
    .user-profile {
        display: flex;
        margin-bottom: 0;
    }
    
    .cover-photo {
        display: none;
    }
    
    .profile-info {
        margin-top: 0;
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .sidebar-actions {
        display: flex;
        padding: 10px;
        overflow-x: auto;
    }
    
    .sidebar-action-btn {
        padding: 8px 12px;
        flex-direction: column;
        font-size: 12px;
        width: auto;
        margin-bottom: 0;
    }
    
    .social-feed-main {
        padding: 15px;
    }
    
    .post-images {
        padding: 0 15px 15px;
    }
    
    .image-grid-many {
        grid-template-columns: 1fr 1fr;
    }
    
    .post-modal-content {
        width: 95%;
        max-width: 500px;
    }
} 